/**
 * @ClassName RegularTest
 * @Description TODO
 * @Author lwj
 * @Date 2021/7/8 9:48
 * @Version 1.0
 */
public class RegularTest {
    public static void main(String[] args) {

        System.out.println(verifyID("xxxxxxxx"));
    }
    
    public static boolean verifyID(String str) {
        
        return  str.toUpperCase().matches("(^\\d{15}$)|(^\\d{17}([0-9]|X)$)");
    }
    
}
